package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FeaturesMapper;
import com.ruoyi.system.domain.Features;
import com.ruoyi.system.service.IFeaturesService;

/**
 * 特色信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-05
 */
@Service
public class FeaturesServiceImpl implements IFeaturesService 
{
    @Autowired
    private FeaturesMapper featuresMapper;

    /**
     * 查询特色信息
     * 
     * @param featureId 特色信息主键
     * @return 特色信息
     */
    @Override
    public Features selectFeaturesByFeatureId(Long featureId)
    {
        return featuresMapper.selectFeaturesByFeatureId(featureId);
    }

    /**
     * 查询特色信息列表
     * 
     * @param features 特色信息
     * @return 特色信息
     */
    @Override
    public List<Features> selectFeaturesList(Features features)
    {
        return featuresMapper.selectFeaturesList(features);
    }

    /**
     * 新增特色信息
     * 
     * @param features 特色信息
     * @return 结果
     */
    @Override
    public int insertFeatures(Features features)
    {
        return featuresMapper.insertFeatures(features);
    }

    /**
     * 修改特色信息
     * 
     * @param features 特色信息
     * @return 结果
     */
    @Override
    public int updateFeatures(Features features)
    {
        return featuresMapper.updateFeatures(features);
    }

    /**
     * 批量删除特色信息
     * 
     * @param featureIds 需要删除的特色信息主键
     * @return 结果
     */
    @Override
    public int deleteFeaturesByFeatureIds(Long[] featureIds)
    {
        return featuresMapper.deleteFeaturesByFeatureIds(featureIds);
    }

    /**
     * 删除特色信息信息
     * 
     * @param featureId 特色信息主键
     * @return 结果
     */
    @Override
    public int deleteFeaturesByFeatureId(Long featureId)
    {
        return featuresMapper.deleteFeaturesByFeatureId(featureId);
    }
}
